﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MostScrapLibary4Magento;
using System.Diagnostics;

namespace LibaryTestingForm
{
    public partial class Form1 : Form
    {
        Most4Magento ob1;

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            if (pictureBox1.Image != LibaryTestingForm.Properties.Resources.pwr_button_on)
            {
                ob1 = new Most4Magento(@"http://mostbg.com/most/PriceList.aspx");
                pictureBox1.Image = LibaryTestingForm.Properties.Resources.pwr_button_on;
                Debug.Print("All go fine");
            }
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            if (pictureBox2.Image != LibaryTestingForm.Properties.Resources.pwr_button_on)
            {
                ob1.GetWebFullPriceList(textBox1.Text, textBox4.Text, textBox2.Text, textBox3.Text);
                pictureBox2.Image = LibaryTestingForm.Properties.Resources.pwr_button_on;
            }
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {
            if (pictureBox3.Image != LibaryTestingForm.Properties.Resources.pwr_button_on)
            {
                ob1.GetMostFullPriceList();
                pictureBox3.Image = LibaryTestingForm.Properties.Resources.pwr_button_on;
            }
        }
    }
}
